package gao.xaiolei.dao;

import gao.xaiolei.enity.TaskStatus;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository("ITaskStatusDao")
public interface ITaskStatusDao extends JpaRepository<TaskStatus, Integer>{

    @Query("select statusName from TaskStatus where statusNum=:statusNum")
    public String getName(@Param("statusNum")Integer statusNum);
}
